#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/12/22 10:00
# @Author: 余桂林
# @Email: 1151026784@qq.com
# @File.attention_pages.py

from selenium.webdriver.common.by import By


class MyPages:
    def __init__(self,driver):
        self.driver = driver

    my_locator = (By.XPATH, '//android.widget.FrameLayout/android.widget.RelativeLayout[1]/android.widget.ImageView[1]')
    attention_location = (By.XPATH, '//android.widget.TextView[@text=\"关注\"]')

    def click_btn_my(self):
        self.driver.find_element(*self.my_locator).click()

    def click_btn_attention(self):
        self.driver.find_element(*self.attention_location).click()

